"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = BaseVideo;

var _react = _interopRequireDefault(require("react"));

var _index = _interopRequireDefault(require("../../index"));

var _components = require("@tarojs/components");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function BaseVideo() {
  var player = null;

  var onReady = function onReady(ins) {
    player = ins;
    console.log(player);
  };

  return /*#__PURE__*/_react.default.createElement(_components.View, null, /*#__PURE__*/_react.default.createElement(_index.default, {
    controls: true,
    onReady: onReady,
    onPlay: function onPlay(e) {
      console.log('play', e);
    },
    onPause: function onPause(e) {
      console.log('pause', e);
    },
    onEnded: function onEnded(e) {
      console.log('ended', e);
    },
    onTimeUpdate: function onTimeUpdate(e) {
      console.log('timeupdate', e);
      return 1;
    },
    onFullscreenChange: function onFullscreenChange(e) {
      console.log('fullscreenchange', e);
    },
    onProgress: function onProgress(e) {
      console.log('progress', e);
    },
    onLoadedMetaData: function onLoadedMetaData(e) {
      console.log('loadmetadata', e);
    },
    onWaiting: function onWaiting(e) {
      console.log('waiting', e);
    },
    onError: function onError(e) {
      console.log('error', e);
    },
    src: "https://mat1.gtimg.com/bbs/qqnewslite/20191024/mp4/pandastar-v.mp4",
    initialTime: 4,
    width: 400,
    height: 400
  }));
}